package com.zj.healthmanage.mapper;

import com.zj.healthmanage.pojo.Ordersetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrdersettingMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Ordersetting record);

    int insertSelective(Ordersetting record);

    Ordersetting selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Ordersetting record);

    int updateByPrimaryKey(Ordersetting record);

    int findCountByOrderDate(Date orderDate);

    void editNumberByOrderDate(Ordersetting ordersetting);

    List<Ordersetting> getOrderSettingByMonth(Map map);

    int queryOrderSettingByDate(String OrderDate);

    Map<String,Integer> queryReservations(String orderDate);

    void editReservations(@Param("orderDate") Date date);

    List<Integer> querySetMealIdsById(Integer id);

    void editNumber(Date beforeOrderDate);
}